package com.fenghongzhang.a18103;

import android.os.Bundle;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import com.fenghongzhang.a18103.entity.User;

import javax.inject.Inject;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class Main2Activity extends AppCompatActivity {


    @Inject
    User user;

    @BindView(R.id.btn)
    Button btn;

    private static final String TAG = "Main2Activity";
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);
        ButterKnife.bind(this);
    }

    @OnClick(R.id.btn)
    public void onViewClicked() {

//        DaggerUserComponent.builder().build().inject(this);
//        user.setName("哈哈哈");
//        Log.i(TAG, "onViewClicked: "+user.toString());

//        DaggerUserComponent.builder().userMoudle(new UserMoudle("名字")).build().inject(this);
//        String name = user.getName();
//
//        Log.i(TAG, "onViewClicked: "+name);

    }
}
